package com.example.mapper;

import com.example.bean.Student11;

import java.util.List;

/*
    持久层接口
 */
public interface StudentMapper2 {
    //查询全部
    public abstract List<Student11> selectAll();

    //根据id查询
    public abstract Student11 selectById(Integer id);

    //新增数据
    public abstract Integer insert(Student11 stu);

    //修改数据
    public abstract Integer update(Student11 stu);

    //删除数据
    public abstract Integer delete(Integer id);

    //查询数据
    public abstract Student11 selectByCondition(Student11 student);

    List<Student11> findByIds(List<Integer> idList);
}
